// ****************************************************************
// Copyright 2012, Stephan Burguchev
// e-mail: me@sburg.net
// ****************************************************************
// *
using System;

namespace Updater.Wpf
{
    public class SimpleConsoleLogger : ILogger
    {
        public void Error(string message, Exception ex)
        {
            Console.Error.WriteLine(message + Environment.NewLine + ex);
        }

        public ILogger GetLogger(object key)
        {
            return this;
        }

        public void Info(string message)
        {
            Console.WriteLine(message);
        }

        public void Warn(string message, Exception ex)
        {
            Console.WriteLine(message + Environment.NewLine + ex);
        }
    }
}
